import { Injectable } from '@nestjs/common';

import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from '../entity/User.entity';

@Injectable()
export class UserService  {
  constructor(@InjectRepository(User) private repo: Repository<User>) { }

  async getAll() {
    return await this.repo.find();
  }

}

